

import 'dart:ui';

import 'package:flutter/material.dart';

class ExtraLocalizations {
  ExtraLocalizations(this.locale);

  final Locale locale;

  static ExtraLocalizations of(BuildContext context) {
    return Localizations.of<ExtraLocalizations>(context, ExtraLocalizations);
  }

  static Map<String, Map<String, Map<String, String>>> _localizedValues = {
    'en': {
      "base":{
        "cancel":"Cancel",
        "next":"Next",
        "back":"Back",
        "confirm":"Confirm",
        "close":"Close",
      },
      'index':{
        'title': 'Siifoo',
        'indexTitle': 'Course',
        'course': 'Course',
        'course': 'Course',
        'profile': 'Profile',
      },
      "login": {
        'forgot':'Forgot Password',
        'title':'login',
        'email':'Email',
        'email_address':'Email Address',
        'phone':'Phone',
        'password':'password',
        'dontAccount':'Dont  have an account ?',
        'register':'Register',
        'here':'here',
      },
      "forgot_password":{
        'title':'Forgot password',
        'verification_code':'Verification code',
        'send_verification':'send verification',
        'new_password':'New password',
        'confirm_new_password':'Confirm new password',
      },
      "home":{
        "welcome":"welcome",
        "good_morning":"good morning,",
      },
      "register":{
        "confirm_password":"confirm password",
        "have_account":"Already have an account ?",
        "full_name":"Full Name *",
        "referral_code":"Referral Code",
        "birth":"Date of Birth *",
        "country":"Country *",
        "city":"City *",
        "address":"Address",
        "welcometo":"welcome to",
      },
      "language":{
        "title":"Language"
      },
      'profile': {
        'title': 'Profile',
        'lessons': 'LESSONS',
        'total_time': 'TOTAL_TIME',
        'level': 'LEVEL',
        'reward': 'Get Reward',
        'personal': 'Personal Profile',
        'beans': 'My Beans',
        'check': 'Check - In',
        'setting': 'Setting',
      },
      'lessons': {
        'title': 'Lessons',
      },
      'total_time': {
        'title': 'Total Time',
        'hours': 'HOURS',
        'minutes': 'MINUTES',
        'video': 'video',
        'min': 'min',
      },
      'introduction': {
        'title': 'Introduction',
        'video': 'video',
        'min': 'min',
        'show': 'Show More',
        'hide': 'Hide',
        'business': 'Business',
        'hacker': 'Sales Hacker',
        'catalog': 'Catalog',
        'learn': 'What you’ ll learn',
        'speaker': 'Speaker',
        'quiz': 'Quiz',
        'introduction': 'Introduction',
        'chapter': 'Chapter',
        'course': 'course',
        'question': 'Question',
        'submit': 'Submit',
        'unlock': 'unlock',
      },
      'level': {
        'title': 'Level',
        'upgrade': 'Request to Upgrade',
        'hide': 'Hide',
        'show': 'Show More',
      },
      'reward': {
        'title': 'Get Reward',
        'invite': 'Invite Friends',
        'promo': 'Promo Code',
        'invite_title': 'Invite friend to get points !',
        'invite_content_1': 'When your friends sign up with your invite code,',
        'invite_content_2': 'they get 5 green beans, and you can also get 5 green beans !',
        'copy': 'Copy',
        'invite_button': 'Invite Friends',
        'referrals': 'Successful referrals',
        'promo_title': 'Have a promo code ?',
        'promo_content_1': 'Enter your promo code to get gift.',
        'promo_placeholder': 'Enter Your Promo Code',
        'promo_button': 'Get Reward',
      },
      'referrals': {
        'title': 'Successful referrals',
        'invite': 'Invite me',
        'invited': 'I invited',
      },
      'personal': {
        'title': 'Personal Profile',
        'name': 'Full Name',
        'number': 'Contact Number',
        'email': 'Email Address',
        'birth': 'Date of Birth',
        'country': 'Country',
        'city': 'City',
        'address': 'Address',
        'edit': 'Edit',
        'upload': 'Upload Image',
        'cancel': 'Cancel'
      },
      'personal_edit': {
        'title': 'Edit Personal Profile',
        'name': 'Full Name',
        'number': 'Contact Number',
        'email': 'Email Address',
        'birth': 'Date of Birth',
        'country': 'Country',
        'city': 'City',
        'address': 'Address',
        'confirm': 'Confirm',
        'cancel': 'Cancel',
        'dialog_confirm_content': 'Confirm edit personal profile',
        'dialog_success_content': 'Operation completed',
        'close': 'Close',
      },
      'beans': {
        'title': 'My Beans',
        'red': 'Red Beans',
        'green': 'Green Beans',
        'top_up': 'Top Up',
      },
      'top_up': {
        'title': 'Top Up',
        'placeholder': 'Enter custom quantity',
        'confirm': 'Confirm Payment MYR ',
      },
      'setting': {
        'title': 'Setting',
        'password': 'Edit Password',
        'language': 'Language',
        'service': 'Term Of Service',
        'about': 'About Us',
        'privacy': 'Privacy Policy',
        'version': 'Version Update',
        'logout': 'Log Out',
      },
      'password': {
        'title': 'Edit Password',
        'current': 'Current password',
        'new': 'New password',
        'again': 'Confirm new password',
        'confirm': 'Confirm',
        'cancel': 'Cancel',
        'dialog_confirm_content': 'Confirm edit password',
        'dialog_success_content': 'Operation completed',
        'close': 'Close',
      },
      'newsfeed': {
        'title': 'Newsfeed',
      },
      'mailbox': {
        'title': 'Mailbox',
      },
      'share': {
        'title': 'Share',
        'cancel': 'Cancel',
        'snapchart': 'Snapchart',
        'twitter': 'Twitter',
        'wechat': 'Wechat',
        'facebook': 'Facebook',
        'weibo': 'Weibo',
        'copy': 'Copy link',
      },
      'navbar': {
        'course': 'Course',
        'newsfeed': 'Newsfeed',
        'mailbox': 'Mailbox',
        'profile': 'Profile',
      }
    },

    'zh': {
      "base":{
        "cancel":"取消",
        "next":"下一步",
        "back":"返回",
        "confirm":"确认",
        "close":"关闭",
      },
      'index':{
        'title': 'Siifoo',
        'indexTitle': '课程',
        'course': '课程',
        'profile': '资料',
      },
      "login": {
        'forgot':'忘记密码',
        'title':'登录',
        'email':'邮箱',
        'email_address':'邮箱',
        'phone':'手机',
        'password':'密码',
        'dontAccount':'没有帐号 ?',
        'register':'注册',
        'here':'这里',
      },
      "forgot_password":{
        'title':'忘记密码',
        'verification_code':'验证码',
        'send_verification':'发送验证码',
        'new_password':'新密码',
        'confirm_new_password':'确认新密码',
      },
      "home":{
        "welcome":"欢迎",
        "good_morning":"早上好,",
      },
      "register":{
        "confirm_password":"确认密码",
        "have_account":"已经有帐号 ?",
        "full_name":"姓名 *",
        "referral_code":"邀请码",
        "birth":"生日 *",
        "country":"国家 *",
        "city":"城市 *",
        "address":"地址",
        "welcometo":"欢迎",
      },
      "language":{
        "title":"语言"
      },
      'profile': {
        'title': '资料',
        'lessons': '课程',
        'total_time': '总时长',
        'level': '等级',
        'reward': '悬赏',
        'personal': '个人资料',
        'beans': '我的豆子',
        'check': '签到',
        'setting': '设置',
      },
      'lessons': {
        'title': '课程',
      },
      'total_time': {
        'title': '总时长',
        'hours': '小时',
        'minutes': '分钟',
        'video': '次',
        'min': '分',
      },
      'introduction': {
        'title': '简介',
        'video': '次',
        'min': '分',
        'show': '展开',
        'hide': '收起',
        'business': '商业',
        'hacker': '销售冠军',
        'catalog': '目录',
        'learn': '目标',
        'speaker': '演讲者',
        'quiz': '测验',
        'introduction': '简介',
        'chapter': '章节',
        'course': '课程',
        'question': '问题',
        'submit': '提交',
        'unlock': '解锁',
      },
      'level': {
        'title': '等级',
        'upgrade': '升级',
        'hide': '收起',
        'show': '展开',
      },
      'reward': {
        'title': '悬赏',
        'invite': '邀请好友',
        'promo': '邀请码',
        'invite_title': '邀请好友获取积分!',
        'invite_content_1': '当您的好友用您的邀请码注册时，',
        'invite_content_2': '他们将得到5颗绿豆，您也可以得到5颗绿豆!',
        'copy': '复制',
        'invite_button': '邀请好友',
        'referrals': '成功推荐',
        'promo_title': '是否用有邀请码?',
        'promo_content_1': '请输入您的邀请码获取奖励。',
        'promo_placeholder': '请输入您的邀请码',
        'promo_button': '获取奖励',
      },
      'referrals': {
        'title': '成功推荐',
        'invite': '我被邀请',
        'invited': '我邀请的',
      },
      'personal': {
        'title': '个人资料',
        'name': '姓名',
        'number': '联系方式',
        'email': '邮箱',
        'birth': '出生日期',
        'country': '国籍',
        'city': '所在城市',
        'address': '住址',
        'edit': '编辑',
        'upload': '上传头像',
        'cancel': '取消',
      },
      'personal_edit': {
        'title': '个人资料修改',
        'name': '姓名',
        'number': '联系方式',
        'email': '邮箱',
        'birth': '出生日期',
        'country': '国籍',
        'city': '所在城市',
        'address': '住址',
        'confirm': '确认',
        'cancel': '取消',
        'dialog_confirm_content': '确认修改个人资料？',
        'dialog_success_content': '修改成功',
        'close': '关闭',
      },
      'beans': {
        'title': '我的豆子',
        'red': '红豆',
        'green': '绿豆',
        'top_up': '充值',
      },
      'top_up': {
        'title': '充值',
        'placeholder': '输入自定义数量',
        'confirm': '确认支付',
      },
      'setting': {
        'title': '设置',
        'password': '修改密码',
        'language': '语言',
        'service': '服务条款',
        'about': '关于我们',
        'privacy': '隐私政策',
        'version': '版本更新',
        'logout': '注销',
      },
      'password': {
        'title': '修改密码',
        'current': '请输入当前密码',
        'new': '请输入新密码',
        'again': '请再次输入新密码',
        'confirm': '确认',
        'cancel': '取消',
        'dialog_confirm_content': '确认修改密码',
        'dialog_success_content': '修改成功',
        'close': '关闭',
      },
      'newsfeed': {
        'title': '新闻',
      },
      'mailbox': {
        'title': '邮箱',
      },
      'share': {
        'title': '分享',
        'cancel': '取消',
        'snapchart': '色拉布',
        'twitter': '推特',
        'wechat': '微信',
        'facebook': '脸书',
        'weibo': '微博',
        'copy': '复制链接',
      },
      'navbar': {
        'course': '课程',
        'newsfeed': '新闻',
        'mailbox': '邮箱',
        'profile': '资料',
      }
    },
  };

  //通用
  String get cancel {
    return _localizedValues[locale.languageCode]['base']['cancel'];
  }
  String get next {
    return _localizedValues[locale.languageCode]['base']['next'];
  }
  String get back {
    return _localizedValues[locale.languageCode]['base']['back'];
  }
  String get confirm {
    return _localizedValues[locale.languageCode]['base']['confirm'];
  }
  String get close {
    return _localizedValues[locale.languageCode]['base']['close'];
  }
  //home
  String get homeWelcome {
    return _localizedValues[locale.languageCode]['home']['welcome'];
  }
  String get homeGoodMorning {
    return _localizedValues[locale.languageCode]['home']['good_morning'];
  }

  String get title {
    return _localizedValues[locale.languageCode]['index']['title'];
  }
  //index
  String get indexTitle {
    return _localizedValues[locale.languageCode]['index']['indexTitle'];
  }
  String get indexCourse {
    return _localizedValues[locale.languageCode]['index']['course'];
  }
  String get indexProfile {
    return _localizedValues[locale.languageCode]['index']['profile'];
  }
  //mailbox
  String get mailboxTitle {
    return _localizedValues[locale.languageCode]['mailbox']['title'];
  }
  //newsfeed
  String get newsfeedTitle {
    return _localizedValues[locale.languageCode]['newsfeed']['title'];
  }
  //登录
  String get loginForgot {
    return _localizedValues[locale.languageCode]['login']['forgot'];
  }
  String get loginTitle {
    return _localizedValues[locale.languageCode]['login']['title'];
  }
  String get loginEmail {
    return _localizedValues[locale.languageCode]['login']['email'];
  }
  String get loginEmailAddress {
    return _localizedValues[locale.languageCode]['login']['email_address'];
  }
  String get loginPhone {
    return _localizedValues[locale.languageCode]['login']['phone'];
  }
  String get loginPassword {
    return _localizedValues[locale.languageCode]['login']['password'];
  }
  String get loginDontAccount {
    return _localizedValues[locale.languageCode]['login']['dontAccount'];
  }
  String get loginRegister {
    return _localizedValues[locale.languageCode]['login']['register'];
  }
  String get loginHere {
    return _localizedValues[locale.languageCode]['login']['here'];
  }
  //忘记密码
  String get forgotPasswordTitle {
    return _localizedValues[locale.languageCode]['forgot_password']['title'];
  }
  String get forgotVerificationCode {
    return _localizedValues[locale.languageCode]['forgot_password']['verification_code'];
  }
  String get forgotSendVerification {
    return _localizedValues[locale.languageCode]['forgot_password']['send_verification'];
  }
  String get forgotNewPassword {
    return _localizedValues[locale.languageCode]['forgot_password']['new_password'];
  }
  String get forgotConfirmNewPassword {
    return _localizedValues[locale.languageCode]['forgot_password']['confirm_new_password'];
  }
  //注册
  String get registerConfirmPassword {
    return _localizedValues[locale.languageCode]['register']['confirm_password'];
  }
  String get registerHaveAccount {
    return _localizedValues[locale.languageCode]['register']['have_account'];
  }
  String get registerFullName {
    return _localizedValues[locale.languageCode]['register']['full_name'];
  }
  String get registerReferralCode{
    return _localizedValues[locale.languageCode]['register']['referral_code'];
  }
  String get registerBirth{
    return _localizedValues[locale.languageCode]['register']['birth'];
  }
  String get registerCountry{
    return _localizedValues[locale.languageCode]['register']['country'];
  }
  String get registerCity{
    return _localizedValues[locale.languageCode]['register']['city'];
  }
  String get registerAddress{
    return _localizedValues[locale.languageCode]['register']['address'];
  }
  String get registerWelcomeTo{
    return _localizedValues[locale.languageCode]['register']['welcometo'];
  }
  String get languageTitle {
    return _localizedValues[locale.languageCode]['language']['title'];
  }

  Map get profile {
    return _localizedValues[locale.languageCode]['profile'];
  }

  Map get lessons {
    return _localizedValues[locale.languageCode]['lessons'];
  }

  Map get totalTime {
    return _localizedValues[locale.languageCode]['total_time'];
  }

  Map get level {
    return _localizedValues[locale.languageCode]['level'];
  }

  Map get reward {
    return _localizedValues[locale.languageCode]['reward'];
  }

  Map get referrals {
    return _localizedValues[locale.languageCode]['referrals'];
  }

  Map get personal {
    return _localizedValues[locale.languageCode]['personal'];
  }

  Map get personalEdit {
    return _localizedValues[locale.languageCode]['personal_edit'];
  }

  Map get setting {
    return _localizedValues[locale.languageCode]['setting'];
  }

  Map get password {
    return _localizedValues[locale.languageCode]['password'];
  }

  Map get introduction {
    return _localizedValues[locale.languageCode]['introduction'];
  }

  Map get beans {
    return _localizedValues[locale.languageCode]['beans'];
  }

  Map get topUp {
    return _localizedValues[locale.languageCode]['top_up'];
  }

  Map get share {
    return _localizedValues[locale.languageCode]['share'];
  }

  Map get newsFeed {
    return _localizedValues[locale.languageCode]['newsfeed'];
  }

  Map get mailbox {
    return _localizedValues[locale.languageCode]['mailbox'];
  }

  Map get navBar {
    return _localizedValues[locale.languageCode]['navbar'];
  }

}